﻿using Market.AbstractProduct;
using Market.Product;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Market
{
    public static class CashFactory
    {
        public static CashSuper CreateAccept(string type) 
        {
            switch (type)
            {
                case "正常收费":
                    return new CashNormal();
                case "满 300 减 100":
                    return new CashReturn(300,100);
                case "打八折":
                    return new CashRebate(0.8);
                default:
                    return new CashNormal();
            }
        }
    }
}
